﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Store.Web.PushNotifications
{
    public class ToastNotification
    {
        public string Title { get; set; }
        public string Subtitle { get; set; }
        public string Param { get; set; }

        public string GetXml()
        {
            string toastMessage = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
                "<wp:Notification xmlns:wp=\"WPNotification\">" +
                   "<wp:Toast>" +
                        "<wp:Text1>" + Title + "</wp:Text1>" +
                        "<wp:Text2>" + Subtitle + "</wp:Text2>" +
                        "<wp:Param>" + Param + "</wp:Param>" +
                   "</wp:Toast> " +
                "</wp:Notification>";

            return toastMessage;
        }
    }
}